Skip to content

refactor(mcp): rename mcp-remote-add to mcp-http, generalize header#14

Merged
trick77 merged 3 commits into
masterfrom
refactor/mcp-http-presets
May 9, 2026
Merged

refactor(mcp): rename mcp-remote-add to mcp-http, generalize header#14
trick77 merged 3 commits into
masterfrom
refactor/mcp-http-presets

Conversation

@trick77
Copy link
Copy Markdown
Owner

@trick77 trick77 commented May 9, 2026

Summary

  • Rename mcp-remote-add / mcp-remote-add-noauthmcp-http / mcp-http-noauth. The previous name implied the server had to be off-machine, but opencode's type: "remote" is just HTTP transport — localhost is valid. New names also match the existing <topic>-<descriptor> naming pattern in presets/.
  • Generalize the auth variant: drop the hardcoded Authorization: Bearer <token> and instead prompt for a header name + value. Single preset now covers bearer auth, upstream API tokens (e.g. X-Bitbucket-Token for an MCP server proxying to Bitbucket), and other custom headers.
  • README updated.

Breaking change for anyone referencing the old preset names.

Note: this branch also carries the two unpushed version-bump commits (0.3.1, 0.3.2) that were sitting on local master.

Test plan

  • npm test (47 passing)
  • Apply mcp-http to a scratch opencode.json with Authorization / Bearer xyz and confirm the resulting mcp.<name>.headers block
  • Apply mcp-http with X-Bitbucket-Token / raw token and confirm the header is written verbatim
  • Apply mcp-http-noauth and confirm no headers key is written

trick77 added 3 commits May 8, 2026 10:38
The previous name implied the server had to be off-machine, but
opencode's `type: "remote"` is just HTTP transport — the URL can
point to localhost. Renamed to mcp-http / mcp-http-noauth, which
also matches the existing `<topic>-<descriptor>` naming pattern
in presets/.

Generalized the auth variant beyond hardcoded
`Authorization: Bearer <token>`: it now prompts for a header name
and value so the same preset covers bearer auth, upstream API
tokens (e.g. X-Bitbucket-Token), and other custom headers needed
by MCP servers that proxy to backend services.

Breaking change for users referencing the old preset names.
@trick77 trick77 merged commit 8d82ee6 into master May 9, 2026
2 checks passed
@trick77 trick77 deleted the refactor/mcp-http-presets branch May 9, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant